# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname="qbe"
pkgver=1.0
pkgrel=0
pkgdesc="A simple C compiler backend"
url="https://c9x.me/compile/"
arch="x86_64 aarch64 riscv64"
license="MIT"
source="$pkgname-$pkgver.tar.gz::https://c9x.me/git/qbe.git/snapshot/qbe-$pkgver.tar.gz"

build() {
	make PREFIX=/usr
}

check() {
	make check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
21d1a6a62b389073cb8ca9973144cdc8d075e56baea35e6323d6a98a3c0e891097e3404f3016f3466ba50da99627be11d43978c9f6c10ffff9b6be7740305875  qbe-1.0.tar.gz
"
